home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3181 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  65 lines

  1. hwefri92@tufvan.hv.se (Henrik Wetterstrom) wrote:
  2. >I have been reading through the RKRM loads of times now
  3. >and been staring at these few lines of assembler code
  4. >for hors. I think it should do what RKRM tellms me to
  5. >do, but still it locks up the whole system during the
  6. >SetIntVector() exec.library call. It never reaches
  7. >the label 'hang' and the interrupt is never started.
  8. >What did I do wrong? I am dying for your help.
  9. >I would appreciate a emailed answer (or maybe rather
  10. >a Cc: carboncopy of your reply) since I do not trust
  11. >me news server to bring me all answers.
  12. >Here's the buggy code:
  13. >
  14. >run    move.l    4,a6
  15. >    move.l    #INTB_VERTB,d0
  16. >    lea    int,a1
  17. >    jsr    _LVOSetIntVector(a6)
  18. >    move.l    d0,oldint
  19. >
  20. >hang    bra.b    hang
  21. >
  22.  
  23. >icode    move.w    #INTF_VERTB,intreq(a0)    ; Clear IRQ
  24. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25. ***** WHAT ARE YOU TRYING TO DO HERE!!!????? *****
  26.  
  27. >    rts
  28. >
  29. >int    dc.l    0        ;ln_Succ
  30. >    dc.l    0        ;ln_Pred
  31. >    dc.b    NT_INTERRUPT    ;ln_Type
  32. >    dc.b    0        ;ln_Pri
  33. >    dc.l    irqname        ;ln_Name
  34. >    dc.l    idata        ;is_Data
  35. >    dc.l    icode        ;is_Code
  36. >
  37. >idata    dcb.l    10        ;dummy storage
  38. >oldint    dc.l    0
  39. >irqname    dc.b    "vbint",0
  40. >
  41. >
  42. >/Henrik Wtterstrom (hwefri92@tufvan.hv.se)
  43. >
  44. >
  45.  
  46.  
  47. I'm not 100% sure (i;m not on my Amiga now) but I think that you miss a 
  48. movem.l a0-a6/d0-d7,-(a7) at the beginning and a movem.l 
  49. (a7)+,a0-a6/d0-d7 at the end (before the rts!).
  50.  
  51. Then,you didn.t specify which register is in a0 (i think that you should 
  52. have something like lea INTREQ,a0 or something like that, but again I'm 
  53. not 100% sure cause I don't know what are you doing there!).You say that 
  54. you clear the IRQ so that may be the problem(!).
  55.  
  56. Good luck...
  57. _________________________________________________________________________
  58. - ++++    ++++   -
  59. - +++++   +++++  - Sinisa.Steblaj@Pula.carnet.hr
  60. - ++++    ++++   -
  61. - +++++   +++++  - .  . .. ... Die and let Live! ... .. .  .
  62. - ++++ lo +++++  -
  63. _________________________________________________________________________
  64.  
  65.